package com.ficus.road.maintain.service.carmanager;

import com.ficus.road.maintain.core.model.carmanager.CarLog;
import com.ficus.road.maintain.dao.carmanager.CarLogDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author xiawen yang
 * @date 2022/2/18 下午3:01
 */
@Service
public class CarLogService {
    @Autowired
    private CarLogDao carLogDao;

    public void saveOrUpdate(CarLog carLog) {
        carLogDao.saveOrUpdate(carLog);
    }

    public CarLog findById(String id) {
        return carLogDao.fetch(id);
    }
}
